import http from './request.js'
//登录
function userLogin(data) {
	return http({
		url: '/user/login',
		method: 'POST',
		data
	})
}
//登录
function userMobileLogin(data) {
	return http({
		url: '/user/mobilelogin',
		method: 'POST',
		data
	})
}
//产品列表
function productList(data) {
	return http({
		url: '/xilujob/product/index',
		method: 'GET',
		data
	})
}
//产品详情
function productDetail(data) {
	return http({
		url: '/xilujob.product/detail',
		method: 'GET',
		data
	})
}
//预约产品
function productReservation(data) {
	return http({
		url: '/xilujob.product/reservation',
		method: 'POST',
		data
	})
}
////考勤////
//邀请加入公司
function attendanceInvite(data) {
	return http({
		url: '/attendance/invite',
		method: 'GET',
		data
	})
}
//处理公司邀请
function attendanceJoin(data) {
	return http({
		url: '/attendance/join',
		method: 'POST',
		data
	})
}
//获取打卡地点
function attendanceGetaddress(data) {
	return http({
		url: '/attendance/getaddress',
		method: 'GET',
		data
	})
}
//签到记录
function attendanceList(data) {
	return http({
		url: '/attendance/list',
		method: 'POST',
		data
	})
}
//签到记录
function attendanceSignup(data) {
	return http({
		url: '/attendance/signup',
		method: 'POST',
		data
	})
}
//请假类型
function askleaveType(data) {
	return http({
		url: '/askleave/type',
		method: 'POST',
		data
	})
}
//请假表单
function askleaveApply(data) {
	return http({
		url: '/askleave/apply',
		method: 'POST',
		data
	})
}
//請假提交記錄
function askleaveLists(data) {
	return http({
		url: '/askleave/lists',
		method: 'POST',
		data
	})
}
//請假記錄詳情
function askleaveDetail(data) {
	return http({
		url: '/askleave/detail',
		method: 'GET',
		data
	})
}
//撤銷請假申請
function askleaveCancel(data) {
	return http({
		url: '/askleave/cancel',
		method: 'POST',
		data
	})
}

//开放城市
function OpenCity(data) {
	return http({
		url: '/xilujob.site_city/site_cities',
		method: 'GET',
		data
	})
}
//开放城市下的区
function OpenDistrict(data) {
	return http({
		url: '/xilujob.site_city/districts_with',
		method: 'GET',
		data
	})
}
//推荐岗位
function recommendJobs(data) {
	console.log(data, 'll')
	return http({
		url: '/xilujob.job/recommend_jobs',
		method: "POST",
		data,
		headers: data.headers,
	})
}
//撤銷請假申請
function attendanceUploadwork(data) {
	return http({
		url: '/attendance/uploadwork',
		method: 'POST',
		data
	})
}
// 职位详情
function recommendJobsdetail(data) {
	return http({
		url: '/xilujob.job/detail',
		method: 'POST',
		data
	})
}
//公司规模
function companyScales(data) {
	return http({
		url: '/xilujob.common/company_scales',
		method: 'GET',
		data
	})
}
//公司详情
function companyDetail(data) {
	return http({
		url: '/xilujob.company/detail',
		method: 'GET',
		data
	})
}
//创建简历
function saveModule(data) {
	return http({
		url: '/xilujob.user/save_module',
		method: 'GET',
		data
	})
}
//职位列表
function xilujobList(data) {
	return http({
		url: '/xilujob.job/lists',
		method: 'post',
		data,
		headers: data.headers,
	})
}
//简历列表
function resumeFileList(data) {
	return http({
		url: '/xilujob/resume/resume_file',
		method: 'post',
		data
	})
}
//聊天列表
function indexgetmyxinxinuserlist(data) {
	return http({
		url: '/chat/indexgetmyxinxinuserlist',
		method: 'GET',
		data
	})
}
//聊天记录
function getmyPriatexinxi(data) {
	return http({
		url: '/chat/getmyprivatexinxi',
		method: 'GET',
		data
	})
}
//面试状态
function multiStatus(data) {
	return http({
		url: '/xilujob.job_interview/multi_status',
		method: 'GET',
		data
	})
}
export {
	userLogin,
	userMobileLogin,
	productList,
	productDetail,
	productReservation,
	attendanceInvite,
	attendanceJoin,
	attendanceGetaddress,
	attendanceList,
	attendanceSignup,
	askleaveType,
	askleaveApply,
	askleaveLists,
	askleaveDetail,
	askleaveCancel,
	OpenCity,
	OpenDistrict,
	recommendJobs,
	recommendJobsdetail,
	companyScales,
	companyDetail,
	saveModule,
	xilujobList,
	resumeFileList,
	indexgetmyxinxinuserlist,
	getmyPriatexinxi,
	multiStatus,
	attendanceUploadwork,
}